package cn.outsourcing.supermarket.common.constants;

/**
 * 微信常量
 *
 * @author gzkemays
 * @since 2021/10/13 10:28
 */
public interface WechatConstants {
  String WECHAT_PREFIX = "wechat";
  String APPID = "appid";
  String SECRET = "secret";
  String JS_CODE = "jscode";
  String OPEN_ID = "openid";
  String SESSION_KEY = "session_key";
  String COMMON_WECHAT_NICK_PREFX = "微信用户";
  String INFO_AVATAR_KEY = "avatarUrl";
  String INFO_NICKNAME_KEY = "nickName";
  String INFO_GENDER_KEY = "gender";
  String INFO_LANGUAGE_KEY = "zh_CN";
  String INFO_CITY_KEY = "city";
  String INFO_PROVINCE_KEY = "province";
  String INFO_COUNTRY_KEY = "country";

  /** 非法密钥 */
  String ILLEGAL_AES_KEY = "-41001";
  /** 非法初始向量 */
  String ILLEGAL_IV = "-41002";
  /** 非法密文 */
  String ILLEGAL_BUFFER = "-41003";
  /** 解码错误 */
  String DECODE_BASE64_ERROR = "-41004";
  /** 数据不正确 */
  String NO_DATA = "-41005";
}
